package com.vhall.component.entity.interactive.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author xianglei
 * @date 2021/5/14 16:05
 */
@Data
public class QuestionUnbindRoomReqVo implements Serializable {
    private static final long serialVersionUID = -1835276123602586037L;

    @ParamName("question_id")
    @NotNull(message = "参数错误")
    private Integer questionId;

    @ParamName("room_id")
    @NotBlank(message = "参数异常")
    @Pattern(regexp = "[0-9a-zA-Z_]{1,32}", message = "参数异常")
    private String roomId;
}
